export const errorimg = {
  inserted: function (dom, options) {
    dom.onerror = function () {
      dom.src = options.value
    }
  },
  componentUpdated: function (dom,options) {
      dom.src = dom.src || options.value
  }
}

export const dir1 = {
  inserted: function () {
    // console.log('指令1')
  }
}

export const dir2 = {
  inserted: function () {
    // console.log('指令')
  }
}
